package alp.starcode.framework.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 订单详情表(order_detail_info)
 * </p>
 *
 * @author yanglin
 * @since 2021-11-29
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("order_detail_info")
public class OrderDetailInfo extends Model<OrderDetailInfo> {

    private static final long serialVersionUID=1L;

    /**
     * 订单详情编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单编号
     */
    @TableField("orderUuid")
    private String orderUuid;

    /**
     * 商品编号
     */
    @TableField("merchandiseUuid")
    private String merchandiseUuid;

    /**
     * 商品数量
     */
    @TableField("merchandiseNum")
    private Integer merchandiseNum;

    /**
     * 价格
     */
    @TableField("price")
    private BigDecimal price;

}
